package org.example.services;

import org.example.domain.Role;
import org.example.domain.response.ResponseResult;

public interface RoleService {

    ResponseResult getAllRoles();

    ResponseResult updateUserRole(int userId, int roleId);

    ResponseResult updateRoleById(Role role);

    ResponseResult saveRole(Role role);

    ResponseResult deleteRole(int roleId);

    ResponseResult getRoleByPage(int pageSize, int currentPage);

    ResponseResult getRoleByRoleKey(int pageSize, int currentPage, String roleKey);

}
